import { Component } from '@angular/core';

import { NavParams } from 'ionic-angular';

import { UserManagePage } from '../user-manage/user-manage';
import { MachineManagePage } from '../machine-manage/machine-manage';
import { OnlinePage } from '../online/online';
import { AppointmentPage } from '../appointment/appointment';


@Component({
  templateUrl: 'build/pages/tabs/tabs.html'
})
export class TabsPage {
  // set the root pages for each tab
  tab1Root: any = OnlinePage;
  tab3Root: any = MachineManagePage;
  tab4Root: any = UserManagePage;
  mySelectedIndex: number;

  constructor(navParams: NavParams) {
    this.mySelectedIndex = navParams.data.tabIndex || 0;
  }
}
